//
//  LSSyetemInfoManager.m
//  听说弱点强化训练
//
//  Created by 盛超 on 2018/9/13.
//  Copyright © 2018年 盛超. All rights reserved.
//

#import "LSSyetemInfoManager.h"

@implementation LSSyetemInfoManager

-(void)requestWithCompltionSuccess:(void (^)(LSModelSystem *))success failuer:(void (^)(NSString *))failure {
    self.requestUrl = @"api/ZXYYTS/W_ZXYYTS_GetSystemInfo";
    
    [self requestGetMethodWithSuccess:^(id responseObject) {
        
        NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingAllowFragments error:nil];
        NSLog(@"%@",[NSObject objectToJson:dict]);
        LSModelSystem *config = [LSModelSystem yy_modelWithDictionary:dict];
        success(config);
        
    } Failure:^(NSError *error) {
        
        failure(error.description);
        
    }];
    
}

@end
